package com.umpay.dto.paybusi;

import com.umpay.annotation.Pattern;
import com.umpay.verify.Verifiable;

import java.util.Arrays;

public class Order implements Verifiable {

    private Long amount;
    private String userId;
    private Object[] goods;
    protected String rpid;
    @Pattern(message = "商户编码格式不正确")
    protected String merId;
    protected String orderId;
    protected String merDate;
    protected String trace;

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Object[] getGoods() {
        return goods;
    }

    public void setGoods(Object[] goods) {
        this.goods = goods;
    }

    public Order() {
        super();
    }

    public String getRpid() {
        return rpid;
    }

    public void setRpid(String rpid) {
        this.rpid = rpid;
    }

    public String getMerId() {
        return merId;
    }

    public void setMerId(String merId) {
        this.merId = merId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getMerDate() {
        return merDate;
    }

    public void setMerDate(String merDate) {
        this.merDate = merDate;
    }

    public String getTrace() {
        return trace;
    }

    public void setTrace(String trace) {
        this.trace = trace;
    }

    @Override
    public String toString() {
        return "Order [amount=" + amount + ", userId=" + userId + ", goods=" + Arrays.toString(goods) + ", rpid=" + rpid
                + ", merId=" + merId + ", orderId=" + orderId + ", merDate=" + merDate + ", trace=" + trace + "]";
    }

}
